const sts = require('swagger-to-service')
const plugin = require('./plugin')
const path = require('path')

sts({
  url: 'public/api.yaml', // yaml uri
  apiPath: path.resolve(__dirname, '../../src/api/api.js'),
  servicePath: path.resolve(__dirname, '../../src/api/service.js'),
  plugins: [plugin],
})
